import request from "@/util/http.js/";
import qs from "qs"
export default {
  //渲染内容接口
  gain() {
    return request({
      method: "get",
      params: {
        _gp: "admin.merchant",
        _mt: "getMerchant"
      }
    });
  },
  //修改
  compile(form) {
    return request({
      method: "post",
      data: qs.stringify({
        _gp: "admin.merchant",
        _mt: "updateMerchant",
        title: form.title,
        logoUrl: form.logoUrl,
        description: form.description,
        address: form.address,
        showType: form.showType
      })
    });
  }
};
